from django.conf.urls import url

from apps.organizations.views import OrgPageView,TeacherPageView,orgHomeView,orgCourceView,orgTeacherView,orgDescView,TeacherDetailView


urlpatterns = [
    # 机构分页
    url(r'^orgPage/$',OrgPageView.as_view(),name="orgPage"),
    # 机构首页
    url(r'^orgHome/(?P<orgId>\d+)/$',orgHomeView.as_view(),name="orgHome"),
    # 机构课程
    url(r'^orgCource/(?P<orgId>\d+)/$',orgCourceView.as_view(),name="orgCource"),
    # 机构讲师
    url(r'^orgTeacher/(?P<orgId>\d+)/$',orgTeacherView.as_view(),name="orgTeacher"),
    # 机构介绍
    url(r'^orgDesc/(?P<orgId>\d+)/$',orgDescView.as_view(),name="orgDesc"),
    # 授课教师分页
    url(r'^teacherPage/$',TeacherPageView.as_view(),name="teacherPage"),
    # 讲师详情
    url(r'^teacherDetail/(?P<teacherId>\d+)/$',TeacherDetailView.as_view(),name="teacherDetail")
]
